<?php

namespace App\Policies;

use App\Models\Company;
use App\Models\Admin;
use Illuminate\Auth\Access\HandlesAuthorization;

class CompanyPolicy
{
    use HandlesAuthorization;

    /**
     * Create a new policy instance.
     *
     */
    public function __construct()
    {
        //
    }
    public function create(Admin $_user, Company $_company){

        return intval($_user->role) == 1;
    }
}
